package com.tsingtree.modular.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tsingtree.base.pojo.page.LayuiPageInfo;
import com.tsingtree.modular.entity.NanSellAnnounce;
import com.tsingtree.modular.entity.NanSellAnnounceComment;
import com.tsingtree.modular.entity.NanSellAnnounceReply;
import com.tsingtree.modular.model.params.NanSellAnnounceCommentParam;
import com.tsingtree.modular.model.result.NanSellAnnounceCommentResult;

import java.util.List;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author jagger
 * @since 2024-03-08
 */
public interface NanSellAnnounceCommentService extends IService<NanSellAnnounceComment> {

    /**
     * 新增
     *
     * @author jagger
     */
    void add(NanSellAnnounceCommentParam param);

    /**
     * 删除
     *
     * @author jagger
     */
    void delete(NanSellAnnounceCommentParam param);

    /**
     * 更新
     *
     * @author jagger
     */
    void update(NanSellAnnounceCommentParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jagger
     */
    NanSellAnnounceCommentResult findBySpec(NanSellAnnounceCommentParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jagger
     */
    List<NanSellAnnounceCommentResult> findListBySpec(NanSellAnnounceCommentParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jagger
     */
     LayuiPageInfo findPageBySpec(NanSellAnnounceCommentParam param);

    void del(List<NanSellAnnounceReply> list, NanSellAnnounceComment nanSellAnnounceComment, NanSellAnnounce nanSellAnnounce);
}
